<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
    <div class="col100">
        <fieldset class="adminform">
            <legend><?php echo JText::_( 'Událost šablony' ); ?></legend>

            <table class="admintable">
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="hruby_popis">
                            <?php echo JText::_( 'Hrubý popis' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="hruby_popis" id="hruby_popis" size="32" maxlength="250" value="<?php echo $this->udalost_sabl->hruby_popis;?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="cas">
                            <?php echo JText::_( 'Čas - hodiny a minuty oddělte dvojtečkou (hh:mm)' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="cas" id="cas" size="5" maxlength="5" value="<?php echo $this->udalost_sabl->cas;?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="cas_konec">
                            <?php echo JText::_( 'Čas konce události - nepovinné (hh:mm)' ); ?>:
                        </label>
                    </td>
                    <td>
                        <input class="text_area" type="text" name="cas_konec" id="cas_konec" size="5" maxlength="5" value="<?php echo $this->udalost_sabl->cas_konec;?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right" class="key">
                        <label for="zvyrazneni">
                            <?php echo JText::_( 'Zvýraznit' ); ?>:
                        </label>
                    </td>
                    <td>
                        <?php
                        $zvyrazneni_old_str = '';
                        if ($this->udalost_sabl->zvyrazneni == 1) {
                            $zvyrazneni_old_str = 'Ano';
                        } else {
                            $zvyrazneni_old_str = 'Ne';
                        }

                        ?>
                        <select name="zvyrazneni">
                            <?php
                            echo '<option value="'.$this->udalost_sabl->zvyrazneni.'">'.$zvyrazneni_old_str.'</option>';
                            ?>
                            <option value=0> Ne </option>
                            <option value=1> Ano </option>
                        </select>
                    </td>
                </tr>
            </table>
            <p>
                <?php
                $link_delete = JRoute::_( 'index.php?option=com_ohlasky&controller=udalost_sabl&task=remove&del_udalost_sabl_id='.$this->udalost_sabl->id.'&sablona_id='.$this->udalost_sabl->sablona_id );
                echo "<a href=\"".$link_delete."\"> vymazat událost (bez dalšího varování!)</a>";
                ?>
            </p>
        </fieldset>
    </div>
    <div class="clr"></div>

    <input type="hidden" name="option" value="com_ohlasky" />
    <input type="hidden" name="id" value="<?php echo $this->udalost_sabl->id; ?>" />
    <input type="hidden" name="den_tydne" value="<?php echo $this->udalost_sabl->den_tydne; ?>" />
    <input type="hidden" name="misto_id" value="<?php echo $this->udalost_sabl->misto_id; ?>" />
    <input type="hidden" name="sablona_id" value="<?php echo $this->udalost_sabl->sablona_id; ?>" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="controller" value="udalost_sabl" />
</form>

